export const state = () => ({
    visible: null,
    innerComponent: ''
})

export const mutations = {
    changeVisible(state) {
        state.visible = state.visible === null ? true : !state.visible
    },
    changeInnerComponent(state, component) {
        state.innerComponent = component
    }
}